home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Programming / Scalos / Developer / C / Include / Prefs / scalos_palette.h next >
Encoding:
C/C++ Source or Header  |  2000-03-30  |  1.7 KB  |  68 lines

  1. #ifndef PREFS_SCA_PALETTE_H
  2. #define PREFS_SCA_PALETTE_H
  3. /*
  4. **    $VER: scalos_palette.h 39.218 (30.03.2000)
  5. **
  6. **    File format for scalos_palette preferences
  7. **
  8. **    (C) Copyright 1996-1997 ALiENDESiGN
  9. **   (C) Copyright 2000      Satantic Dreams Software
  10. **    All Rights Reserved
  11. */
  12.  
  13. // ---------------------------------------------------------------------------
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. #ifndef LIBRARIES_IFFPARSE_H
  20. #include <libraries/iffparse.h>
  21. #endif
  22.  
  23. // ---------------------------------------------------------------------------
  24.  
  25. #define ID_SPAL        MAKE_ID('S','P','A','L')
  26. #define ID_PENS        MAKE_ID('P','E','N','S')
  27.  
  28. // ---------------------------------------------------------------------------
  29.  
  30. struct ScaPalettePrefs {
  31.     UWORD    scl_count;            // count of the following colors
  32.     UWORD    scl_first;            // first color, normaly 0
  33.     ULONG    scl_colors[];        // a long for each RGB value
  34. };
  35.  
  36. // the structure is very similar to the LoadRGB32 structure
  37.  
  38. // ---------------------------------------------------------------------------
  39.  
  40. struct ScaPensPrefs {
  41.     UWORD            sce_count;    // count of the following colors
  42.     struct ScalosPen    sce_pen[];
  43. }
  44.  
  45. struct ScalosPen {
  46.     WORD    sp_pentype;                // see below
  47.     UWORD    sp_pen;                // the selected pen
  48. }
  49.  
  50. //  constants for ScalosPen.sp_pentype
  51. //  a standard Drawinfo Pen or:
  52.  
  53. #define SP_HALFSHINE            -1
  54. #define SP_HALFSHADOW            -2
  55. #define SP_OUTLINE                -3
  56. #define SP_DRAWERTEXT            -4
  57. #define SP_DRAWERTEXTSEL            -5
  58. #define SP_DRAWERTBACKGROUND        -6
  59. #define SP_FILETEXT                -7
  60. #define SP_FILETEXTSEL            -8
  61. #define SP_FILEBACKGROUND        -9
  62. #define SP_BACKDROPDETAIL        -10
  63. #define SP_BACKDROPBLOCK            -11
  64.  
  65. // ---------------------------------------------------------------------------
  66.  
  67. #endif /* PREFS_SCAPALETTE_H */
  68.